package com.atguigu.boot.bean;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.stereotype.Component;

/**
 * @DESCRIPTION:
 * @USER: shg
 * @DATE: 2023/11/19 0:45
 */

@Component
@ConfigurationProperties(prefix = "fish")
public class Fish {
    
    private String fishName;
    private int fishAge;

    public String getFishName() {
        return fishName;
    }

    public void setFishName(String fishName) {
        this.fishName = fishName;
    }

    public int getFishAge() {
        return fishAge;
    }

    public void setFishAge(int fishAge) {
        this.fishAge = fishAge;
    }

    @Override
    public String toString() {
        return "Fish{" +
                "fishName='" + fishName + '\'' +
                ", fishAge=" + fishAge +
                '}';
    }
}
